package Test;

import java.util.Date;

public class Employee {
    private Date hireDay= new Date(2020,15,25);


    public Date getHireDay() {
        return hireDay;
    }

}

class Test封装{
    /**
     *
     * @param args
     * @see <a href="www.baidu.com">hahah</a>
     */
    public static void main(String[] args) {
        Employee harry =new Employee();
        Date d=harry.getHireDay();
        double tenYearsInMilliSeconds=10*365.25*24*60*60*1000;
        d.setTime(d.getTime()-(long) tenYearsInMilliSeconds);
        System.out.println(d);
//        System.out.println(d.getTime());
    }


}
